﻿using System;
using System.Collections;

using Yawf.Core.Logs;
using Yawf.Test;
using Yawf.Web.Mail;

namespace Yawf.Web {
	public class DummyService {
		private MailService service;

		public MailService Service { get { return service; } set { service = value;} }


		public DummyClass CreateNew(long v1, int v2, Decimal v3, String v4) {
			Log.DebugMessage(this.GetType(), "v1 == " + v1);
			Log.DebugMessage(this.GetType(), "v2 == " + v2);
			Log.DebugMessage(this.GetType(), "v3 == " + v3);
			Log.DebugMessage(this.GetType(), "v4 == " + v4);

			DummyClass d = new DummyClass();
			d.Value1 = v1;
			d.Value2 = v2;
			d.Value3 = v3;
			d.Value4 = v4;

			Hashtable model = new Hashtable();
			model.Add("test", d);

			Service.Send("mailToSend", model);

			return d;
		}

		public void Copy(DummyClass d) {
			Log.DebugMessage(this.GetType(), "d.Value1 == " + d.Value1);
			Log.DebugMessage(this.GetType(), "d.Value2 == " + d.Value2);
			Log.DebugMessage(this.GetType(), "d.Value3 == " + d.Value3);
			Log.DebugMessage(this.GetType(), "d.Value4 == " + d.Value4);
		}
	}
}
